package com.xinqing.test.modle;


import com.feidee.fdcommon.util.ToolUtils;

public class TagParam {
	private String apt;
	private String key;  //改字段已在升级迭代中废除
	private String product = "MyMoney";
	private String userName = "";
	private String deviceId = "";
	private String tagNames;
	private String tagTable;
	private String rowKey;
	private String family;

	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		if ("MyCard".equalsIgnoreCase(product) || "cardniu".equalsIgnoreCase(product) ||
				"cardniupro".equalsIgnoreCase(product)) {
			this.product = "cardniu";
		} else if (!ToolUtils.isNotNull(product) ||
				product.startsWith("MyMoney") || "mymoney".equalsIgnoreCase(product)) {
			this.product = "MyMoney";
		} else {
			this.product = product;
		}
	}

	public String getTagNames() {
		return tagNames;
	}

	public void setTagNames(String tagNames) {
		this.tagNames = tagNames;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getApt() {
		return apt;
	}

	public void setApt(String apt) {
		this.apt = apt;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getTagTable() {
		return tagTable;
	}

	public void setTagTable(String tagTable) {
		this.tagTable = tagTable;
	}

	public String getRowKey() {
		return rowKey;
	}

	public void setRowKey(String rowKey) {
		this.rowKey = rowKey;
	}

	public String getFamily() {
		return family;
	}

	public void setFamily(String family) {
		this.family = family;
	}

	@Override
	public String toString() {
		return "TagParam{" +
				"apt='" + apt + '\'' +
				", key='" + key + '\'' +
				", product='" + product + '\'' +
				", userName='" + userName + '\'' +
				", deviceId='" + deviceId + '\'' +
				", tagNames='" + tagNames + '\'' +
				", tagTable='" + tagTable + '\'' +
				", rowKey='" + rowKey + '\'' +
				", family='" + family + '\'' +
				'}';
	}
}
